using System.Text.Json.Serialization;

namespace UniversalAdminSystem.Infrastructure.Configs;

public class AllowedFileConfig
{
    [property: JsonPropertyName("Mime")]
    public string Mime { get; set; } = string.Empty;

    [property: JsonPropertyName("Ext")]
    public string Ext { get; set; } = string.Empty;

    [property: JsonPropertyName("Signature")]
    public string Signature { get; set; } = string.Empty;
}

public class AllowedFilesConfig
{
    [property: JsonPropertyName("AllowedFiles")]
    public IEnumerable<AllowedFileConfig> AllowedFiles { get; set; } = new List<AllowedFileConfig>();
}